<style>
        .layui-form-label {
                width: 70px;
        }
</style>
<div class="layuimini-container">
        <div class="layuimini-main" id="app">

                <div class="layui-tab-content">
                        <div class="layui-tab-item layui-show">
                                <form id="app-form" class="layui-form layuimini-form">
                                        *-<input type="hidden" name="field" value="comment">

                                        <div class="layui-form-item">
                                                <label class="layui-form-label">评论条件</label>
                                                <div class="layui-input-block">
                                                        <?php $auth=sysconfig('comment.must_login'); ?>
                                                        <input type="radio" name="must_login" value="0" title="免登录" {if
                                                               condition="$auth eq 0" }checked{/if}>
                                                        <input type="radio" name="must_login" value="1" title="必须登录" {if
                                                               condition="$auth eq 1" }checked{/if}>

                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">评论审核</label>
                                                <div class="layui-input-block">
                                                        <?php $check=sysconfig('comment.check'); ?>
                                                        <input type="radio" name="check" value="0" title="关闭" {if
                                                               condition="$check eq 0" }checked{/if}>
                                                        <input type="radio" name="check" value="1" title="开启" {if
                                                               condition="$check eq 1" }checked{/if}>
                                                        <input type="radio" name="check" value="1" title="关键词审核显示" {if
                                                               condition="$check eq 2" }checked{/if}>
                                                </div>
                                        </div>
                                        <div class="layui-form-item">

                                                        <label class="layui-form-label">审核关键字</label>
                                                        <div class="layui-input-block">
                                                                <textarea name="check_keywords"  class="layui-textarea">{:sysconfig('comment.check_keywords')}</textarea>
                                                        </div>

                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">最新评论显示（条）</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="show_new_num" value="{:sysconfig('comment.show_new_num')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">评论间隔（分钟）</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="interval_time" value="{:sysconfig('comment.interval_time')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">单用户每天可评论数</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="user_day_max" value="{:sysconfig('comment.user_day_max')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>
                                        <div class="layui-form-item">
                                                <label class="layui-form-label">单IP每天可评论数</label>
                                                <div class="layui-input-inline">
                                                        <input type="number" name="ip_day_max" value="{:sysconfig('comment.ip_day_max')}"
                                                               autocomplete="off" class="layui-input">
                                                </div>
                                        </div>

                                        <div class="hr-line"></div>
                                        <div class="submit-info text-center">
                                                <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit="system.config/save" data-refresh="false">确认</button>
                                                <a class="layui-btn layui-btn-primary layui-btn-sm" layform-close>关闭</a>
                                        </div>

                                </form>
                        </div>
                </div>


        </div>
</div>

